<?php

declare(strict_types=1);

namespace app\common\service\sys;

use app\common\traits\ServiceTrait;
use app\common\dao\sys\ClientDao;

/**
 * 应用客户端
 * @author:kaige
 * @update:2022-06-12
 * @copyright ©2022 泉州市盛筑信息科技有限公司 版权所有
 */
class ClientService
{
  protected $dao = null;

  public function __construct()
  {
    $this->dao = new ClientDao();
  }
  use ServiceTrait;


  /**
   * 重写 格式化数据
   */
  public function _list_format($list)
  {
    if (count($list) > 0) {
      foreach ($list as $key => $val) {
        if(isset($val['last_time']) && !empty($val['last_time'])){
          $list[$key]['last_time'] = time2str($val['last_time']);
        }
      }
    }
    return $list;
  }
}
